package com.ncbee.base.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ncbee.base.model.entity.Resource;
import com.ncbee.base.model.entity.User;
import com.ncbee.base.model.vo.BaseQuery;
import com.ncbee.base.model.vo.UserInfo;
import com.ncbee.base.model.vo.tableVo.ResourceVo;
import com.ncbee.base.model.vo.tableVo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author youdianyun
 * @since 2018-11-23
 */
public interface UserDao extends BaseMapper<User> {

    IPage<UserVo> selectUserList(IPage<UserVo> page,@Param("baseQuery") BaseQuery<User> baseQuery);

    List<UserInfo> selectUserInfoByUsername(String username);

    List<Resource> selectUserResourceById(Long id);

    List<ResourceVo> selectUserMenuById(Long id);
}
